package com.scs.application.modules.base.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.scs.application.core.entity.TreeEntity;
import com.scs.application.modules.upgrade.db.annotation.EntityClassAnnotation;
import com.scs.application.modules.upgrade.db.annotation.EntityFieldAnnotation;
import com.scs.application.modules.upgrade.db.enums.EntityFieldType;
import lombok.Data;
import lombok.experimental.Accessors;
/**
 * <p>
 *
 * </p>
 */
@Data
@Accessors(chain = true)
@EntityClassAnnotation(remark = "耗材品类表")
@TableName("base_matr_category")
public class MatrCategory extends TreeEntity {


    // id ,在父类中处理

    @EntityFieldAnnotation(
            text = "品类code",
            length = "20",
            not_null = true,
            default_value = "",
            comment = ""
    )
    private String code;

    @EntityFieldAnnotation(
            text = "品类名称",
            length = "50",
            not_null = true,
            default_value = "",
            comment = ""
    )
    private String categoryName;

    @EntityFieldAnnotation(
            text = "上级品类id",
            type = EntityFieldType.LONG,
            length = "",
            not_null = false,
            default_value = "0",
            comment = ""
    )
    private String parentId;

    @EntityFieldAnnotation(
            text = "上级品类code",
            length = "20",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String parentCode;

    @EntityFieldAnnotation(
            text = "hrp代码",
            length = "20",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String hrpCode;

    @EntityFieldAnnotation(
            text = "hrp代码上级",
            length = "20",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String hrpCodeParent;

    @EntityFieldAnnotation(
            text = "mscm代码",
            length = "20",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String mscmCode;

    @EntityFieldAnnotation(
            text = "国家分类代码",
            length = "50",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String countryCode;
    @EntityFieldAnnotation(
            text = "国家分类名称",
            length = "100",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String countryName;


    @EntityFieldAnnotation(
            text = "统计分类院内代码",
            length = "50",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String queryCode;
    @EntityFieldAnnotation(
            text = "统计分类院内名称",
            length = "100",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String queryName;


    @EntityFieldAnnotation(
            text = "通用分类院内代码",
            length = "50",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String commonCode;
    @EntityFieldAnnotation(
            text = "通用分类院内名称",
            length = "100",
            not_null = false,
            default_value = "",
            comment = ""
    )
    private String commonName;


    // hrp或者his的分类id
    private String catIdSync;

}
